package org.ling.xuan.entity.row;

import org.ling.xuan.entity.mo.MarkFile;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class MarkFileRowMapper implements RowMapper<MarkFile> {

    public static MarkFileRowMapper INSTANCE = new MarkFileRowMapper();

    private MarkFileRowMapper() {
    }


    @Override
    public MarkFile mapRow(ResultSet resultSet, int rowNum) throws SQLException {
        BeanPropertyRowMapper<MarkFile> rowMapper = new BeanPropertyRowMapper<>(MarkFile.class);
        return rowMapper.mapRow(resultSet, rowNum);
    }
}

